Verifying Time Complexity of Binary Search using Dafny

نویسندگان

چکیده

Formal software verification techniques are widely used to specify and prove the functional correctness of programs. However, nonfunctional properties such as time complexity usually carried out with pen paper. Inefficient code in terms may cause massive performance problems large-scale complex systems. We present a proof concept for using Dafny tool verify worst-case binary search. This approach can also be academic purposes new way teach algorithms complexity.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Dafny: Statically Verifying Functional Correctness

This report presents the Dafny language and verifier, with a focus on describing the main features of the language, including preand postconditions, assertions, loop invariants, termination metrics, quantifiers, predicates and frames. Examples of Dafny code are provided to illustrate the use of each feature, and an overview of how Dafny translates programming code into a mathematical proof of f...

متن کامل

Verifying time complexity of Turing machines

We show that, for all reasonable functions T (n) = o(n log n), we can algorithmically verify whether a given one-tape Turing machine runs in time at most T (n). This is a tight bound on the order of growth for the function T because we prove that, for T (n) ≥ (n+1) and T (n) = Ω(n log n), there exists no algorithm that would verify whether a given one-tape Turing machine runs in time at most T ...

متن کامل

the effects of time planning and task complexity on accuracy of narrative task performance

هدف اصلی این تحقیق بررسی تاثیر برنامه ریزی زمانی، هم چنین افزایش میزان پیچیدگی تکالیف در نظر گرفته شده بصورت همزمان، بر دقت و صحت و پیچیدگی عملکرد نوشتاری زبان آموزان می باشد. بدین منظور، 50 نفر از دانش آموزان دختر در رده ی سنی 16 الی 18 سال به عنوان شرکت کنندگان در این زمینه ی تحقیق در نظر گرفته شدند و به دو گروه آزمایشی و کنترل بصورت اتفاقی تقسیم شدند. اعضای گروه آزمایشی هر دو تکلیف ساده و پی...

Time-of-flight estimation using binary search system identification technique

( ) ( ) ( ) t gs D t r t s + − = , (1b) where the x(t) consists of a reference signal r(t), and Gaussian noise gx(t), while the s(t) consists of the time delayed version of the reference signal r(t-D), and Gaussian noise gs(t). Additionally let us assume that the noise signals are uncorrelated with each other and with the reference signal. The TOF lies at the core of many modern signalprocessin...

متن کامل

Verifying Asymptotic Time Complexity of Imperative Programs in Isabelle

We present a framework in Isabelle for verifying asymptotic time complexity of imperative programs. We build upon an extension of Imperative HOL and its separation logic to include running time. In addition to the basic arguments, our framework is able to handle advanced techniques for time complexity analysis, such as the use of the Akra–Bazzi theorem and amortized analysis. Various automation...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Electronic proceedings in theoretical computer science

سال: 2021

ISSN: ['2075-2180']

DOI: https://doi.org/10.4204/eptcs.338.9